package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.ArticleHistory;
import com.zhijian.medical.entity.vo.request.ArticleHistorySearchVo;
import com.zhijian.medical.entity.vo.response.ArticleHistoryVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 新文件管理修改历史记录 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-07-31 13:55:28
 */
public interface ArticleHistoryService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    ArticleHistory selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    ArticleHistoryVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param articleHistory
     * @return
     */
    Long insert(ArticleHistory articleHistory);

    /**
     * 更改
     *
     * @param articleHistory
     * @return
     */
    boolean update(ArticleHistory articleHistory);

    /**
     * 总数
     *
     * @param articleHistorySearchVo
     * @return
     */
    Integer count(ArticleHistorySearchVo articleHistorySearchVo);

    /**
     * 列表
     *
     * @param articleHistorySearchVo
     * @return
     */
    List<ArticleHistoryVo> selectList(ArticleHistorySearchVo articleHistorySearchVo);

    /**
     * 分页查询
     *
     * @param articleHistorySearchVo
     * @return
     */
    Page<ArticleHistoryVo> selectPage(ArticleHistorySearchVo articleHistorySearchVo);
}